package com.example.comiccenter.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNullApi;

@Data //生成Get和Set方法，重写toString
@AllArgsConstructor //生成有参构造器
@NoArgsConstructor //生成无参构造器
@TableName(value = "chapter")
public class Chapter {
    @TableId(value = "chapterId",type = IdType.AUTO)
    private Integer chapterId;
    private String comicName;    //作品名
    private Integer chapterNumber;  //章节序号
    private String chapterName;     //章节标题
    private String chapterStorage;  //章节存储地址
    private Integer pageNumber;    //章节内页数

}
